Validate S6’’ MAC

Command:

To validate an S6’’ Message Authentication Code (MAC) calculated by a   CEP card on an Issuer backup total.

Notes:

Use of this command requires the optional ESP licence. Error code 67 will be returned if the command is not licensed.

 

Field

Length & Type

Details

COMMAND MESSAGE

Command Code

2 A

Value “W4”

KMP

32 H

Master Purchase Key, encrypted under variant 3 of LMK pair 20-21

ALGP2

1 B

Algorithm code for S6’’ in purchase transactions;

must equal X’10

IDCEP

6 B

CEP card serial number

NTCEP

2 B

CEP card transaction number

MAC Type

1 B

MAC type; must equal X’02

CURRPDA

3 B

PDA currency

MTOToldIB

4 B

Signed amount of transactions in the batch for the Issuer

NToldIB

2 B

Signed number of transactions in the batch for the Issuer

IDBATCH

  

2 B

Identifier of batch containing the aggregated transactions

RIDPSAM

  

5 B

Registered identity of the entity assigning PSAM Creator IDs

IDPSAMCREATOR

4 B

Identifier for the creator of a PSAM

IDPSAM

4 B

Identifier of a PSAM

NTPSAM

4 B

PSAM transaction number

S6’’

8 B

Transaction MAC, to be validated

End Message Delimiter

1 C

  

Optional. Must be present if a message trailer is present. Value X'19

Message Trailer

n A

Optional. Maximum length 32 characters

 


 

Field

Length & Type

Details

RESPONSE MESSAGE

Message Header

m A

Will be returned to the host unchanged

Response Code

2 A

Value “W5”

Error Code

2 N

00 – No error

01 – S6’’ verification failure

70 – Invalid ALGP2

71 – Invalid MAC type

10 – KMP parity error

12 - No keys loaded in user storage

13 – LMK error – report to Supervisor

15 – Error in input data

21 – Invalid user storage index

End Message Delimiter

1 C

  

Will only be present if present in the command message. Value X'19

Message Trailer

n A

  

Will only be present if in the command message. Maximum length 32 characters